<template>
	<el-button v-bind="FieldItem?.attrs" @click="emits('handleClick', FieldItem)" :icon="iconMap[FieldItem?.attrs.icon]">{{
		FieldItem?.attrs.default
	}}</el-button>
</template>

<script setup lang="ts">
import { TabFieldType } from '/@/components/Linxyun/custom/DataStructs/commontype';
import iconMap from '/@/utils/iconMap';
const props = withDefaults(
	defineProps<{
		FieldItem: TabFieldType | null;
		inputData: Record<string, any>;
	}>(),
	{
		FieldItem: null,
	}
);
const { FieldItem } = toRefs(props);
const emits = defineEmits(['handleClick']);
</script>

<style></style>
